<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
		<title>SPToplist Class Reference</title>
		<meta id="xcode-display" name="xcode-display" content="render"/>
		<meta name="viewport" content="width=550" />
		<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
		<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
		<meta name="generator" content="appledoc 2.1 (build 840)" />
	</head>
	<body>
		<header id="top_header">
			<div id="library" class="hideInXcode">
				<h1><a id="libraryTitle" href="../index.html">CocoaLibSpotify </a></h1>
				<a id="developerHome" href="../index.html">Spotify AB</a>
			</div>
			
			<div id="title" role="banner">
				<h1 class="hideInXcode">SPToplist Class Reference</h1>
			</div>
			<ul id="headerButtons" role="toolbar">
				<li id="toc_button">
					<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
				</li>
				<li id="jumpto_button" role="navigation">
					<select id="jumpTo">
	<option value="top">Jump To&#133;</option>
	
	<option value="overview">Overview</option>
	
	
	
	
	<option value="tasks">Tasks</option>
	
	
	
	
	
	<option value="properties">Properties</option>
	
	<option value="//api/name/albums">&nbsp;&nbsp;&nbsp;&nbsp;albums</option>
	
	<option value="//api/name/artists">&nbsp;&nbsp;&nbsp;&nbsp;artists</option>
	
	<option value="//api/name/loadError">&nbsp;&nbsp;&nbsp;&nbsp;loadError</option>
	
	<option value="//api/name/loaded">&nbsp;&nbsp;&nbsp;&nbsp;loaded</option>
	
	<option value="//api/name/locale">&nbsp;&nbsp;&nbsp;&nbsp;locale</option>
	
	<option value="//api/name/session">&nbsp;&nbsp;&nbsp;&nbsp;session</option>
	
	<option value="//api/name/tracks">&nbsp;&nbsp;&nbsp;&nbsp;tracks</option>
	
	<option value="//api/name/username">&nbsp;&nbsp;&nbsp;&nbsp;username</option>
	
	
	
	
	<option value="class_methods">Class Methods</option>
	
	<option value="//api/name/globalToplistInSession:">&nbsp;&nbsp;&nbsp;&nbsp;+ globalToplistInSession:</option>
	
	<option value="//api/name/toplistForCurrentUserInSession:">&nbsp;&nbsp;&nbsp;&nbsp;+ toplistForCurrentUserInSession:</option>
	
	<option value="//api/name/toplistForLocale:inSession:">&nbsp;&nbsp;&nbsp;&nbsp;+ toplistForLocale:inSession:</option>
	
	<option value="//api/name/toplistForUserWithName:inSession:">&nbsp;&nbsp;&nbsp;&nbsp;+ toplistForUserWithName:inSession:</option>
	
	
	
	
	<option value="instance_methods">Instance Methods</option>
	
	<option value="//api/name/initLocaleToplistWithLocale:inSession:">&nbsp;&nbsp;&nbsp;&nbsp;- initLocaleToplistWithLocale:inSession:</option>
	
	<option value="//api/name/initUserToplistWithUsername:inSession:">&nbsp;&nbsp;&nbsp;&nbsp;- initUserToplistWithUsername:inSession:</option>
	
	
	
</select>
				</li>
			</ul>
		</header>
		<nav id="tocContainer" class="isShowingTOC">
			<ul id="toc" role="tree">
				
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>




<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating and Initializing Toplists">Creating and Initializing Toplists</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Properties">Properties</a></span></li>
	
</ul></li>





<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/albums">albums</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/artists">artists</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/loadError">loadError</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/loaded">loaded</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/locale">locale</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/session">session</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/tracks">tracks</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/username">username</a></span></li>
	
</ul></li>



<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/globalToplistInSession:">globalToplistInSession:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/toplistForCurrentUserInSession:">toplistForCurrentUserInSession:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/toplistForLocale:inSession:">toplistForLocale:inSession:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/toplistForUserWithName:inSession:">toplistForUserWithName:inSession:</a></span></li>
	
</ul></li>



<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initLocaleToplistWithLocale:inSession:">initLocaleToplistWithLocale:inSession:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initUserToplistWithUsername:inSession:">initUserToplistWithUsername:inSession:</a></span></li>
	
</ul></li>


			</ul>
		</nav>
		<article>
			<div id="contents" class="isShowingTOC" role="main">
				<a title="SPToplist Class Reference" name="top"></a>
				<div class="main-navigation navigation-top">
					<ul>
	<li><a href="../index.html">Index</a></li>
	<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
				</div>
				<div id="header">
					<div class="section-header">
						<h1 class="title title-header">SPToplist Class Reference</h1>
					</div>		
				</div>
				<div id="container">	
					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<td class="specification-title">Inherits from</td>
	<td class="specification-value">NSObject</td>
</tr><tr>
	<td class="specification-title">Conforms to</td>
	<td class="specification-value"><a href="../Protocols/SPAsyncLoading.html">SPAsyncLoading</a></td>
</tr><tr>
	<td class="specification-title">Declared in</td>
	<td class="specification-value">SPToplist.h<br />SPToplist.m</td>
</tr>
						</tbody></table></div>
					
					
					
					
					<div class="section section-overview">
						<a title="Overview" name="overview"></a>
						<h2 class="subtitle subtitle-overview">Overview</h2>
						<p>Represents toplist, or a list of <a href="#//api/name/tracks">tracks</a> based on popularity, on the Spotify service.</p>

<p>There are two kinds of toplists &ndash; user toplists and <a href="#//api/name/locale">locale</a> toplists. A user toplist gives a
user&rsquo;s most popular <a href="#//api/name/tracks">tracks</a>, <a href="#//api/name/artists">artists</a> and <a href="#//api/name/albums">albums</a> if they&rsquo;ve enabled Spotify social. A <a href="#//api/name/locale">locale</a>
toplist gives most popular <a href="#//api/name/tracks">tracks</a>, <a href="#//api/name/artists">artists</a> and <a href="#//api/name/albums">albums</a> by region (or globally), and can
be seen as a popularity chart for that region.</p>
					</div>
					
					
					
					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						<h2 class="subtitle subtitle-tasks">Tasks</h2>
						
						
						<a title="Creating and Initializing Toplists" name="task_Creating and Initializing Toplists"></a>
						<h3 class="subsubtitle task-title">Creating and Initializing Toplists</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/globalToplistInSession:">+&nbsp;globalToplistInSession:</a></code>
		<span class="tooltip"><p>Create a global toplist.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/toplistForLocale:inSession:">+&nbsp;toplistForLocale:inSession:</a></code>
		<span class="tooltip"><p>Create a regional toplist.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/toplistForUserWithName:inSession:">+&nbsp;toplistForUserWithName:inSession:</a></code>
		<span class="tooltip"><p>Create a user toplist.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/toplistForCurrentUserInSession:">+&nbsp;toplistForCurrentUserInSession:</a></code>
		<span class="tooltip"><p>Create toplist for the currently logged in user.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/initLocaleToplistWithLocale:inSession:">&ndash;&nbsp;initLocaleToplistWithLocale:inSession:</a></code>
		<span class="tooltip"><p>Initialize a <a href="#//api/name/locale">locale</a> toplist.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/initUserToplistWithUsername:inSession:">&ndash;&nbsp;initUserToplistWithUsername:inSession:</a></code>
		<span class="tooltip"><p>Initialize a user toplist.</p></span>
	</span>
	
	
</li>
						</ul>
						
						
						<a title="Properties" name="task_Properties"></a>
						<h3 class="subsubtitle task-title">Properties</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/albums">&nbsp;&nbsp;albums</a></code>
		<span class="tooltip"><p>Returns the albums in the toplist in descending order of popularity.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/artists">&nbsp;&nbsp;artists</a></code>
		<span class="tooltip"><p>Returns the artists in the toplist in descending order of popularity.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/loaded">&nbsp;&nbsp;loaded</a></code>
		<span class="tooltip"><p>Returns <code>YES</code> if the toplist has finished loading.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/loadError">&nbsp;&nbsp;loadError</a></code>
		<span class="tooltip"><p>Returns the error that occurred during loading, or <code>nil</code> if no error occurred.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/locale">&nbsp;&nbsp;locale</a></code>
		<span class="tooltip"><p>Returns the locale of the toplist, if the toplist is a locale toplist.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/tracks">&nbsp;&nbsp;tracks</a></code>
		<span class="tooltip"><p>Returns the tracks in the toplist in descending order of popularity.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/session">&nbsp;&nbsp;session</a></code>
		<span class="tooltip"><p>Returns the session the toplist is <a href="#//api/name/loaded">loaded</a> in.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/username">&nbsp;&nbsp;username</a></code>
		<span class="tooltip"><p>Returns the username of the toplist, if the toplist is a user toplist.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li>
						</ul>
						
					</div>
					
					
					
					
					
					<div class="section section-methods">
						<a title="Properties" name="properties"></a>
						<h2 class="subtitle subtitle-methods">Properties</h2>
						
						<div class="section-method">
	<a name="//api/name/albums" title="albums"></a>
	<h3 class="subsubtitle method-title">albums</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns the albums in the toplist in descending order of popularity.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, strong) NSArray *albums</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPToplist.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/artists" title="artists"></a>
	<h3 class="subsubtitle method-title">artists</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns the artists in the toplist in descending order of popularity.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, strong) NSArray *artists</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPToplist.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/loadError" title="loadError"></a>
	<h3 class="subsubtitle method-title">loadError</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns the error that occurred during loading, or <code>nil</code> if no error occurred.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, copy) NSError *loadError</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPToplist.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/loaded" title="loaded"></a>
	<h3 class="subsubtitle method-title">loaded</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns <code>YES</code> if the toplist has finished loading.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, getter=isLoaded) BOOL loaded</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPToplist.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/locale" title="locale"></a>
	<h3 class="subsubtitle method-title">locale</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns the locale of the toplist, if the toplist is a locale toplist.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, strong) NSLocale *locale</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPToplist.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/session" title="session"></a>
	<h3 class="subsubtitle method-title">session</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns the session the toplist is <a href="#//api/name/loaded">loaded</a> in.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, strong) SPSession *session</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPToplist.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/tracks" title="tracks"></a>
	<h3 class="subsubtitle method-title">tracks</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns the tracks in the toplist in descending order of popularity.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, strong) NSArray *tracks</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPToplist.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/username" title="username"></a>
	<h3 class="subsubtitle method-title">username</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns the username of the toplist, if the toplist is a user toplist.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, copy) NSString *username</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPToplist.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
					
					<div class="section section-methods">
						<a title="Class Methods" name="class_methods"></a>
						<h2 class="subtitle subtitle-methods">Class Methods</h2>
						
						<div class="section-method">
	<a name="//api/name/globalToplistInSession:" title="globalToplistInSession:"></a>
	<h3 class="subsubtitle method-title">globalToplistInSession:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Create a global toplist.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>+ (SPToplist *)globalToplistInSession:(SPSession *)<em>aSession</em></code></div>
	
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>aSession</em></dt>
			<dd><p>The <a href="#//api/name/session">session</a> the toplist should be created in.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>Returns the created toplist.</p>
	</div>
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>This convenience method is simply returns a new, autoreleased SPToplist
object. No caching is performed.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPToplist.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/toplistForCurrentUserInSession:" title="toplistForCurrentUserInSession:"></a>
	<h3 class="subsubtitle method-title">toplistForCurrentUserInSession:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Create toplist for the currently logged in user.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>+ (SPToplist *)toplistForCurrentUserInSession:(SPSession *)<em>aSession</em></code></div>
	
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>aSession</em></dt>
			<dd><p>The <a href="#//api/name/session">session</a> the toplist should be created in.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>Returns the created toplist.</p>
	</div>
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>This convenience method is simply returns a new, autoreleased SPToplist
object. No caching is performed.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPToplist.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/toplistForLocale:inSession:" title="toplistForLocale:inSession:"></a>
	<h3 class="subsubtitle method-title">toplistForLocale:inSession:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Create a regional toplist.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>+ (SPToplist *)toplistForLocale:(NSLocale *)<em>toplistLocale</em> inSession:(SPSession *)<em>aSession</em></code></div>
	
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>toplistLocale</em></dt>
			<dd><p>The <a href="#//api/name/locale">locale</a> to create a toplist for. This must be a <a href="#//api/name/locale">locale</a> Spotify is currently available in to get anything meaningful.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>aSession</em></dt>
			<dd><p>The <a href="#//api/name/session">session</a> the toplist should be created in.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>Returns the created toplist.</p>
	</div>
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>This convenience method is simply returns a new, autoreleased SPToplist
object. No caching is performed.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPToplist.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/toplistForUserWithName:inSession:" title="toplistForUserWithName:inSession:"></a>
	<h3 class="subsubtitle method-title">toplistForUserWithName:inSession:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Create a user toplist.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>+ (SPToplist *)toplistForUserWithName:(NSString *)<em>user</em> inSession:(SPSession *)<em>aSession</em></code></div>
	
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>user</em></dt>
			<dd><p>The user name to create a toplist for. This must be a user who has enabled Spotify social to get anything meaningful.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>aSession</em></dt>
			<dd><p>The <a href="#//api/name/session">session</a> the toplist should be created in.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>Returns the created toplist.</p>
	</div>
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>This convenience method is simply returns a new, autoreleased SPToplist
object. No caching is performed.</p>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPToplist.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
					
					<div class="section section-methods">
						<a title="Instance Methods" name="instance_methods"></a>
						<h2 class="subtitle subtitle-methods">Instance Methods</h2>
						
						<div class="section-method">
	<a name="//api/name/initLocaleToplistWithLocale:inSession:" title="initLocaleToplistWithLocale:inSession:"></a>
	<h3 class="subsubtitle method-title">initLocaleToplistWithLocale:inSession:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initialize a <a href="#//api/name/locale">locale</a> toplist.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (id)initLocaleToplistWithLocale:(NSLocale *)<em>toplistLocale</em> inSession:(SPSession *)<em>aSession</em></code></div>
	
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>toplistLocale</em></dt>
			<dd><p>The <a href="#//api/name/locale">locale</a> to create a toplist for, or <code>nil</code> for the global toplist. This must be a <a href="#//api/name/locale">locale</a> Spotify is currently available in to get anything meaningful.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>aSession</em></dt>
			<dd><p>The <a href="#//api/name/session">session</a> the toplist should be created in.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>Returns the created toplist.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPToplist.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/initUserToplistWithUsername:inSession:" title="initUserToplistWithUsername:inSession:"></a>
	<h3 class="subsubtitle method-title">initUserToplistWithUsername:inSession:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initialize a user toplist.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (id)initUserToplistWithUsername:(NSString *)<em>user</em> inSession:(SPSession *)<em>aSession</em></code></div>
	
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>user</em></dt>
			<dd><p>The user name to create a toplist for, or <code>nil</code> for the currently logged-in user. This must be a user who has enabled Spotify social to get anything meaningful.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>aSession</em></dt>
			<dd><p>The <a href="#//api/name/session">session</a> the toplist should be created in.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>Returns the created toplist.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPToplist.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
				</div>
				<div class="main-navigation navigation-bottom">
					<ul>
	<li><a href="../index.html">Index</a></li>
	<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
				</div>
				<div id="footer">
					<hr />
					<div class="footer-copyright">
						<p><span class="copyright">&copy; 2012 Spotify AB. All rights reserved. (Last updated: 2012-11-14)</span><br />
						
						<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.1 (build 840)</a>.</span></p>
						
					</div>
				</div>
			</div>
		</article>
		<script type="text/javascript">
			function jumpToChange()
			{
				window.location.hash = this.options[this.selectedIndex].value;
			}
			
			function toggleTOC()
			{
				var contents = document.getElementById('contents');
				var tocContainer = document.getElementById('tocContainer');
				
				if (this.getAttribute('class') == 'open')
				{
					this.setAttribute('class', '');
					contents.setAttribute('class', '');
					tocContainer.setAttribute('class', '');
					
					window.name = "hideTOC";
				}
				else
				{
					this.setAttribute('class', 'open');
					contents.setAttribute('class', 'isShowingTOC');
					tocContainer.setAttribute('class', 'isShowingTOC');
					
					window.name = "";
				}
				return false;
			}
			
			function toggleTOCEntryChildren(e)
			{
				e.stopPropagation();
				var currentClass = this.getAttribute('class');
				if (currentClass == 'children') {
					this.setAttribute('class', 'children open');
				}
				else if (currentClass == 'children open') {
					this.setAttribute('class', 'children');
				}
				return false;
			}
			
			function tocEntryClick(e)
			{
				e.stopPropagation();
				return true;
			}
			
			function init()
			{
				var selectElement = document.getElementById('jumpTo');
				selectElement.addEventListener('change', jumpToChange, false);
				
				var tocButton = document.getElementById('table_of_contents');
				tocButton.addEventListener('click', toggleTOC, false);
				
				var taskTreeItem = document.getElementById('task_treeitem');
				if (taskTreeItem.getElementsByTagName('li').length > 0)
				{
					taskTreeItem.setAttribute('class', 'children');
					taskTreeItem.firstChild.setAttribute('class', 'disclosure');
				}
				
				var tocList = document.getElementById('toc');
				
				var tocEntries = tocList.getElementsByTagName('li');
				for (var i = 0; i < tocEntries.length; i++) {
					tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
				}
				
				var tocLinks = tocList.getElementsByTagName('a');
				for (var i = 0; i < tocLinks.length; i++) {
					tocLinks[i].addEventListener('click', tocEntryClick, false);
				}
				
				if (window.name == "hideTOC") {
					toggleTOC.call(tocButton);
				}
			}
			
			window.onload = init;
			
			// If showing in Xcode, hide the TOC and Header
			if (navigator.userAgent.match(/xcode/i)) {
				document.getElementById("contents").className = "hideInXcode"
				document.getElementById("tocContainer").className = "hideInXcode"
				document.getElementById("top_header").className = "hideInXcode"
			}
			
		</script>
	</body>
</html>